﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="WindowSettings.xaml.cs" company="Jens Horstmann">
//   Copyright (c) Jens Horstmann. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace MiniMusicPlayer.Windows
{
    using System.Windows;
    using System.Windows.Input;

    /// <summary>
    /// Interaction logic for WindowSettings.xaml.
    /// </summary>
    public partial class WindowSettings : Window
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WindowSettings"/> class.
        /// </summary>
        /// <param name="mainWindow">
        /// The main window.
        /// </param>
        public WindowSettings(MainWindow mainWindow)
        {
            this.MainWindow = mainWindow;
            this.InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the main window.
        /// </summary>
        public MainWindow MainWindow { get; set; }

        /// <summary>
        /// The move.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void Move(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        /// <summary>
        /// The activate circle layout.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void ActivateCircleLayout(object sender, RoutedEventArgs e)
        {
            this.MainWindow.ActivateCirclePanelLayout();
        }

        /// <summary>
        /// The activate row layout.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void ActivateRowLayout(object sender, RoutedEventArgs e)
        {
            this.MainWindow.ActivateStackPanelLayout();
        }
    }
}